.TH E1432_SET_AUTO_TRIGGER 3 E1432
.SH NAME
.nf
e1432_set_auto_trigger \- Set auto trigger state
e1432_get_auto_trigger \- Get current auto trigger state
.fi
.IX e1432_set_auto_trigger(3) 3
.IX e1432_get_auto_trigger(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_auto_trigger(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 trigState)
SHORTSIZ16 e1432_get_auto_trigger(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 *trigState)
.cE
.SH DESCRIPTION
\fIe1432_set_auto_trigger\fR sets the trigger state,
of a single channel or group of channels \fIID\fR,
to the value given in \fItrigState\fR.

\fIe1432_get_auto_trigger\fR returns the current value of the trigger state,
of a single channel or group of channels \fIID\fR,
into a memory location pointed to by \fItrigState\fR.

This parameter is a "global" parameter.  It applies to an entire E1432
module rather than to one of its channels.  The \fIID\fR parameter is
used only to identify which module the function applies to, and all
channels in that module will report the same value for this parameter.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fItrigState\fR determines which trigger event will allow the module to advance
from the TRIGGER state into the MEASURE state.
\fBE1432_MANUAL_TRIGGER\fR sets the module to wait for a trigger event to
occur either locally or from the system (SYNC line), or from the
\fIe1432_trigger_measure\fR command, in order to perform the transition.
\fBE1432_AUTO_TRIGGER\fR sets the module to perform the transition as soon
as it enters the TRIGGER state.
\fBE1432_TACH_EDGE_TRIGGER\fR is used in order tracking or RPM triggering to
trigger at the next tach edge after the arming point.

.SH "RESET VALUE"
After a reset, \fItrigState\fR is set to \fBE1432_AUTO_TRIGGER\fR.
Note that this is different than the E1431, which defaults to
\fBE1432_MANUAL_TRIGGER\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_trigger_measure
.ad
